<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        {{b.c}}
        <br />
        <input type="text" v-model="b.c" />
        <h3 class="title">你好{{a}}</h3>
    </div>
    <script src="/xuni/bundle.js"></script>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                a: 1,
                b: {
                    c: 2
                }
            },
            watch: {
                a() {
                    console.log('a改变')
                }
            }
        });
    </script>
</body>
</html>